import PolicyCard from "@/components/PolicyCard/PolicyCard";
import Header from "../../components/Header/Header";
import Classify from "./components/Classify/Classify";
import Service from "./Service";
import style from "./style.module.css";
export default class DeclarationHall extends Service{


    setActiveId=(id:number)=>{
        this.setPolicyList(id);
    }

    render = () => {
        let {policyList}=this.state;
        return (
            <div className={style.DeclarationHall}>
                <div className={style.top}>
                <div className={style.header}>
                    <Header/>
                </div>
                <div className={style.classify}>
                    <Classify setActiveId={this.setActiveId} />
                </div>
                </div>
                <div className={style.content}>
                    {
                        policyList.map((item,index)=><PolicyCard history={this.props.history} policyItem={item} key={index} />)
                    }
                </div>
            </div>
        )
    }
}